﻿var imageMap = {
    "empty": "../../resource/images/empty.png",
    "log": "../../resource/images/log.png",
    "timer": "../../resource/images/timer.png",
    "groupStart": "../../resource/images/groupStart.png",
    "groupEnd": "../../resource/images/groupEnd.png",
    "sleep": "../../resource/images/sleep.png",
    "read": "../../resource/images/readFileActivity_48x48.png",
    "collapse": "../../resource/images/collapse.png",
    "expand": "../../resource/images/group.png",
    "default_16": "../../resource/images/groupStart.png",
    "default_48": "../../resource/images/timer.png",
    "faultHandlers": "../../resource/images/failPoint32.gif",
    "catchImg": "../../resource/images/catch_16x16.png",
    "catchAll": "../../resource/images/catch_all_16x16.png",
    "eventHandlersLeftImg": "../../resource/images/onEvent32.gif",
    "onEventLeftImg": "../../resource/images/onEvent32.gif",
    "onMessage": "../../resource/images/MEP_out_in_16x16.png",
    "catchLeftImg": "../../resource/images/catch32.gif",
    "catchAllLeftImg": "../../resource/images/catchAll32.gif",
    "stop": "../../resource/images/ConstructorOperation_square.jpg",
    "unpin": "../../resource/images/unpin.gif",
    "menu": "../../resource/images/menu_16x16.png",
    "pick": "../../resource/images/pick.gif",
    "group": "../../resource/images/group.png",
    "reply": "../../resource/images/timer.png",
    "write": "../../resource/images/writeFileActivity_48x48.png",
    "uncollapse": "../../resource/images/uncollapse.png",
    "compensationhandler": "../../resource/images/compensation_handler_16x16.png",
    "invoke": "../../resource/images/invokeActivity_48x48.png",
    "reply": "../../resource/images/replyActivity_48x48.png",
    "onMessageStart": "../../resource/images/groupStart.png",
    "onMessageEnd": "../../resource/images/groupEnd.png",
}

function HitResult(hit, x, y) {
    this.isHit = hit;
    this.offsetX = x;
    this.offsetY = y;
}